<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

class Login extends Model
{
    //
    public function addUser($mobile, $password, $name, $salt)
    {
        $result = DB::insert('insert into y_user(mobile,name,password,create_time,salt) values (?,?,?,?,?)', [$mobile, $name, $password, date("Y-m-d H:i:s", time()), $salt]);
        return $result;
    }
}
